home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
boosters.arc
/
XDOWS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1980-01-01
|
861b
|
37 lines
{$IBoDecl}
{$IDows}
{$IPutStr}
{$IStrip}
var
mm, dd, ccyy, len : integer;
BEGIN
ClrScr;
Repeat
PutStr (h,'Enter the numeric value for any '+
'month, day and year',1,1,14);
PutStr (h,'separated by spaces: ',1,2,14);
ClrEol;
read ( s );
if length(s) > 0 then
begin
s := strip ( S, ' ');
len := pos(' ',S) - 1;
val (copy (s,1,len),mm,ecode);
s := copy (s,len+2,50);
len := pos(' ',s) - 1 ;
val (copy (S,1,len),dd,ecode);
len := length(s) - pos(' ',s);
val (copy (S,length(s)-len+1,len),ccyy,ecode);
if ccyy < 100 then
ccyy := ccyy + 1900;
PutStr (h,'Day of the week is '+dows(mm,dd,ccyy),
1,4,14);
end;
until length(s) = 0;
END.